package com.web.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("disease_library")
public class DiseaseLibrary {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;           // 中文名称
    private String englishName;    // 英文名称
    private String type;           // 类型：disease/pest
    private String crops;          // 影响作物
    private String description;    // 基本描述
    private String symptoms;       // 症状表现
    private String prevention;     // 预防措施
    private String treatment;      // 治疗方法
    private String severity;       // 严重程度
    private String imageUrl;       // 图片URL

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    private Integer deleted;
}